#include "trackweldtastinstructionlogic.h"
#include "GeneralDefine.h"
#include "programengine.h"
#include "messagelog.h"
TrackWeldTastInstructionLogic::TrackWeldTastInstructionLogic(QString configFilePathIn, int robotIdIn, ProgramSet *programSetIn,
                                                             RobotIo *ioControllerIn, ProgramEngine *programEngineIn)
{
    programSet=programSetIn;
    robotId=robotIdIn;
    ioController=ioControllerIn;
    programEngine=programEngineIn;
    configFilePath=configFilePathIn;
}

E_PROGRAM_LOOP_RESULT TrackWeldTastInstructionLogic::startTrackWeldTast(int programNum, TrackWeldTastInstruction trackWeldTastInstruct)
{
     qDebug()<<"startTrackWeldTast";
     programEngine->calculateNextLineToRun(programNum);

     return programEngine->isTheLastInstruction(programNum);
}
